/*
 * @Author: funlee 
 * @Email: i@funlee.cn 
 * @Date: 2017-12-11 10:34:51 
 * @Last Modified time:   2017-12-11 10:34:51 
 * @Description: openlayer demo
 *               use "ol": "^4.6.0",
 */
import Map from 'ol/map';
import View from 'ol/view';
import TileLayer from 'ol/layer/tile';
import XYZ from 'ol/source/xyz';

 export default () => {
  new Map({
    target: 'map',
    layers: [
      new TileLayer({
        source: new XYZ({
          url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png'
        })
      })
    ],
    view: new View({
      center: [13078573.75444912, 4800741.73727404],
      zoom: 4
    })
  });
 }